<template>
  <div>v3-home--{{ c }}</div>
</template>

<script setup>
import { useRoute } from "vue-router";
import { ref, watchEffect, onMounted } from "vue";
const c = ref(null);
const route = useRoute();
onMounted(() => {
  if (route.params.id) {
    console.log("编辑");
  } else {
    console.log("新增");
  }
});
// c.value = route.params.id;
// console.log(route.params.id);
// watchEffect(() => {
//   console.log(route.params);
// });
</script>

<style scoped></style>
